package com.pozu.new_retail.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pozu.new_retail.dao.mapper.VisitRecordMapper;
import com.pozu.new_retail.dao.model.VisitRecord;
import com.pozu.new_retail.service.VisitRecordService;

@Service("visitRecordService")
public class VisitRecordServiceImpl implements VisitRecordService {

	@Autowired
	private VisitRecordMapper visitRecordMapper;
	
	@Override
	public int saveVisitRecord(VisitRecord visitRecord) {
		
		visitRecord.setCreatedTime(System.currentTimeMillis());
		
		return visitRecordMapper.insertVisitRecord(visitRecord);
		
	}

}
